#include<stdio.h>

void copy_array(int src[], int des[], unsigned len)
{
  unsigned i;
  for (i = 0; i != len; ++i)
  {
    des[i] = src[i];
  }

}

int main()
{
  int a[5] = {1,2,3,4,5}, b[5] = {3,4,5,6,7};
  copy_array(a, b, 5);

  int i;
  for (i = 0; i != 5; ++i)
  {
    printf("b[%d] = %d\n", i, b[i]);
  }

  return 0;
}
